home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / bixdos.arc / ANSI next >
Text File  |  1986-11-24  |  3KB  |  80 lines

  1. TITLE: Complete attribute bytes table
  2.  
  3.  
  4. *** System Prompt ***          { } = optional 
  5.  
  6. paraphrased from ch 2 (DOS Commands), DOS (2.10) Reference manual  
  7.  
  8. format:  PROMPT {meta-string}{text}...     (any combination) 
  9.  
  10.          defined meta-strings: 
  11.  
  12.    (nul) normal prompt ($n$g)     $n  Default drive letter 
  13.     $b   "|" character            $p  current dir & default drive 
  14.     $d   date                     $q  "=" character 
  15.     $e   ASCII ESCape character   $t  time 
  16.     $g   ">" character            $v  DOS version number 
  17.     $h   backspace and erase      $$  "$" character 
  18.     $l   "<"     "                $-  ASCII CR LF sequence 
  19.  
  20. (Note that the $e meta-string allows us to use any of the  
  21.  following extended screen/keyboard control sequences.) 
  22.  
  23. *** Extended Screen Control *** 
  24.  
  25. paraphrased from ch 2 (Extended Screen & Keyboard Commands), 
  26.                  DOS Technical Reference (IBM#1502346) 
  27.  
  28. Notes: 
  29. 1. The control sequences are effective only if ANSI.SYS has 
  30.    been installed. 
  31. 2. They can be issued thru any DOS function call that can 
  32.    write to the standard output device. 
  33. 3. Default values are used if null or 0 parameters are used. 
  34.  
  35. Esc[#;#H      CUrsor Positioned @ line;column (default is 1) 
  36. Esc[#;#f        "                "            (     "      ) 
  37. Esc[#A          "    Up # lines               (     "      ) 
  38. Esc[#B          "    Down # "                 (     "      ) 
  39. Esc[#C          "    Forward # columns        (     "      ) 
  40. Esc[#D          "    Backward #   "           (     "      ) 
  41. Esc[s         Save Cursor Position 
  42. Esc[u         Restore Cursor Position 
  43. Esc[#;#R      Cursor Position Report reports line;column 
  44. Esc[6n        Device Status Report outputs Esc[#;#R 
  45. Esc[2J        Erase Display & cursor home (1;1) 
  46. Esc[k         Erase Line from cursor to eol  
  47. Esc[#;...;#m  Set Graphics Rendition   
  48.  
  49.    attribute                        foreground      background
  50.    0 all atr off (wh on bk)           30 black        40 black
  51.    1 hi intensity                     31 red          41 red
  52.    4 underline (mono only)            32 green        42 green
  53.    5 blink                            33 yellow       t43 yellow
  54.    7 reverse video                    34 blue         44 blue
  55.    8 invisible                        35 magenta      45 magenta
  56.                                       36 cyan         46 cyan
  57.                                       37 white        47 white
  58. Esc[=#h     Set Mode    (default is 0)
  59. Esc[=#I     Reset Mode  (     "      )
  60.                 Black & White             Color
  61.                 0  40x25                  1  40x25
  62.                 2  80x25                  3  80x25
  63.                 4  320x200                5  320x200
  64.                 6  640x200
  65.      (also see MODE, option 2 in DOS reference manual)
  66.  
  67. Esc[=7h       Word-wrap on 
  68. Esc[?7h           "     on 
  69. Esc[=7I           "     off 
  70. Esc[?7I           "     off 
  71.  
  72. *** Extended Keyboard (Reassignment) ***      { } = optional 
  73.  
  74.         If first # is 0 (NUL) "then first & second code make  
  75.                          up an extended ASCII re-definition" 
  76.         Else first # is the (dec) ASCII code being mapped.  
  77.  
  78. Esc[{#;}{"string";}...........#p   (any combination of decimal 
  79. Esc[{#;}{"string";}..."string";p    numbers and strings) 
  80.